import java.util.Scanner ; 

public class Ppcm{
    public static int ppcm(int nbr1, int nbr2){

	int ppcm;
	int pgcd;
	pgcd = pgcd(nbr1,nbr2);
	ppcm = (nbr1*nbr2)/pgcd;
	return ppcm;
    }
    public static int pgcd(int nbr1, int nbr2){

	int reste;
	reste = nbr1%nbr2;
	while (reste!=0) {

	    nbr1 = nbr2;
	    nbr2 = reste;
	    reste = nbr1%nbr2;

	}
	return nbr2;



    }
    public static void main ( String[] args ) { 
	Scanner clavier = new Scanner ( System.in ) ;
	int ppcm;
	int pgcd;
	int nbr1;
	int nbr2;
	nbr1 = clavier.nextInt();
	nbr2 = clavier.nextInt();
	pgcd = pgcd(nbr1,nbr2);
	ppcm = ppcm(nbr1,nbr2);
	System.out.println(ppcm);


    }


}
